package com.zhouidea.www.control.ChooseStucture.Switch;

public class SwitchDemo2 {
    public static void main(String[] args) {
        String name = "张三";
        //JDK7的新特性，表达式结果可以是字符串
        //字符的本职还是数字

        //反编译java---class (字节码文件) ----反编译(IDEA )

        switch (name) {
            case "张三":
                System.out.println("张三");
                break;
            case "张四":
                System.out.println("张四");
                break;
            default:
                System.out.println("gun!");
        }
    }
}

